package com.woniuxy.mapper;

import com.woniuxy.entity.FoodComment;
import com.woniuxy.entity.FoodCommentExample;

import java.util.List;
import java.util.Map;

import com.woniuxy.vo.FoodCommentlVO;
import org.apache.ibatis.annotations.Param;

public interface FoodCommentMapper {
    long countByExample(FoodCommentExample example);

    int deleteByExample(FoodCommentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(FoodComment record);

    int insertSelective(FoodComment record);

    List<FoodComment> selectByExample(FoodCommentExample example);

    FoodComment selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") FoodComment record, @Param("example") FoodCommentExample example);

    int updateByExample(@Param("record") FoodComment record, @Param("example") FoodCommentExample example);

    int updateByPrimaryKeySelective(FoodComment record);

    int updateByPrimaryKey(FoodComment record);

    /**
     * 评论的初始查询
     * @param map
     * @return
     */
    List<FoodCommentlVO> selectFoodCommentByExample(Map<String, Object> map);

    /**
     * 评论的初始查询统计
     * @param map
     * @return
     */
    int countFoodCommentByExample(Map<String, Object> map);
}